package com.java.demo.model;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-01
 * Time: 15:15
 */
@Component
public class Users {

    //Users类代表的是User对象的存储地

    @Bean("user")
    public User getUser() {
        User user = new User();
        user.setName("张三");
        user.setXp("保密");
        user.setPassword("123456");
        return user;
    }


}
